package com.qst.crop.entity;

/**
 * @author YGD
 * @日期： 2025-07-07-09-19
 * @habit: like girls
 **/

import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;

public class Discuss {
    private Integer discussId;
    private Integer knowledgeId;
    private String ownName;
    @NotBlank(
            message = "内容不能为空"
    )
    private String content;
    private Date createTime;

    public Discuss() {
    }

    public Integer getDiscussId() {
        return this.discussId;
    }

    public void setDiscussId(Integer discussId) {
        this.discussId = discussId;
    }

    public Integer getKnowledgeId() {
        return this.knowledgeId;
    }

    public void setKnowledgeId(Integer knowledgeId) {
        this.knowledgeId = knowledgeId;
    }

    public String getOwnName() {
        return this.ownName;
    }

    public void setOwnName(String ownName) {
        this.ownName = ownName == null ? null : ownName.trim();
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
